package com.eight.homepage.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.common.pojo.TbLink;

import com.eight.homepage.vo.LinkVo2;
import com.eight.homepage.vo.LinkVo3;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @program: educaion-parent
 * @description:
 * @author: 平家祥
 * @create: 2023-05-27 14:28
 **/
@Mapper
public interface LinkDao extends BaseMapper<TbLink> {
    @Update(value = "update tb_link set is_disable = #{isDisable} where link_id = #{linkId}")
    Integer updateisDisable(LinkVo2 linkVo2);

    @Update(value = "update tb_link set link_name = #{linkName}, link_url = #{linkUrl} where link_id = #{linkId}")
    Integer updateById1(LinkVo3 linkVo3);
    @Delete(value = "delete from tb_link where link_id = #{linkId}")
    Integer selectById1(String linkId);
}
